package com.example.demoone.kotlin

fun main() {
    // 1.数字类型
    val a: Int = 10
    val b: Long = 10L
    val c: Double = 10.0
    val d: Float = 10.0f

    //2.布尔类型
    val e: Boolean = true

    //3.字符类型
    var char: Char = 'a'

    //4.字符串类型
    val str: String = "hello world"
    val str1: String = """
        hello
        world
    """
    println(str1)

    //5.字符串模板
    val name = "张三"
    val age = 18
    println("我的名字是$name,年龄是${age+1}")
}